const Index = {
    info(title, option){
        wx.showToast({
            icon:'none', 
            title, 
            duration: 2000,
            ...option
        })
    },
    ok(title, option){ this.info(title, {icon:'success', ...option} ) },
    error(title, option){ this.info(title, {icon:'error', ...option} ) },
    loading(title, option){ this.info(title, {icon:'loading', ...option} ) },
}

export default Index